import React from 'react'

export default class Page extends React.Component{




    render(){
        const {isSetting} = this.props
        return (
            <div className="custom-element-menu-page">
                {
                    isSetting ? (
                        <div className="custom-element-menu-page-preview">
                            <div className="custom-element-menu-page-preview-title">链接页面显示区域</div>
                            <div className="middleUtil"></div>
                        </div>

                    ) : (
                        <React.Fragment ecId={`${this && this.props && this.props.ecId || ''}_undefined@yftxzr`}>
                            <div className="route">
                                {this.props.children}
                            </div>
                            <div className="iframe">
                                <iframe id="custom-element-menu-iframe" className="custom-element-menu-iframe"
                                        width="100%" height="100%" frameBorder="0"></iframe>
                            </div>
                        </React.Fragment>
                    )
                }

            </div>
        )
    }
}